package xyz.xuminghai.javafx_learn.scene.control;

import javafx.application.Application;
import javafx.collections.FXCollections;
import javafx.scene.Scene;
import javafx.scene.control.ListView;
import javafx.stage.Stage;

/**
 * 2023/5/24 16:34 星期三<br/>
 *
 * @author xuMingHai
 */
public class ListViewApp extends Application {

    private final ListView<String> listView = new ListView<>(FXCollections
            .observableArrayList("Julia", "Ian", "Sue", "Matthew", "Hannah", "Stephan", "Denise"));

    public static void main(String[] args) {
        Application.launch(args);
    }


    @Override
    public void start(Stage primaryStage) {
        primaryStage.setTitle(getClass().getSimpleName());
        Scene scene = new Scene(listView, 800, 600);
        primaryStage.setScene(scene);
        primaryStage.show();
    }
}
